function 检测设备类型并弹出提示() {
	var sUserAgent = navigator.userAgent.toLowerCase();
	if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent)) {
		var flag = confirm("手机目前没有适配，请使用电脑端访问。\n点击确认将跳转至主页，取消则继续访问")
		if (flag) {
			window.location.href = "https://act_meteor{$rthSuffix}/";
		}
	} else {
		// var flag = confirm('2月18日，V社禁用了自定义无线电功能，网站已经无法使用，待找到解决办法之前，网站会处于停更状态，本项目历时半年，一个人手写万行代码为爱发电，还有配套的软件写了一半胎死腹中\n如果网站曾经给你带来了快了可以给我捐点款激励我，大家后会有期，关于后续计划可以添加我QQ：1340145680，或者关注我b站账号：UID:100001294，ACT丶流星雨，谢谢大家\n\n\n\n');
		// if (flag) {
		// 	window.open("https://gitee.com/abcd233/csgo_code_generate");
		// }
	}
}
检测设备类型并弹出提示();

function gid(id) {
	return document.getElementById(id)
}
window.onload = function() {
	网页加载完成()
	改变窗口大小()
}
window.onresize = function() {
	改变窗口大小();
}

function setCookie(c_name, value, expiredays) {
	var exdate = new Date()
	exdate.setDate(exdate.getDate() + expiredays)
	cookieVal = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
	document.cookie = cookieVal;
}

function getCookie(c_name) {
	if (document.cookie.length > 0) {
		c_start = document.cookie.indexOf(c_name + "=")
		if (c_start != -1) {
			c_start = c_start + c_name.length + 1
			c_end = document.cookie.indexOf(";", c_start)
			if (c_end == -1) c_end = document.cookie.length
			return unescape(document.cookie.substring(c_start, c_end))
		}
	}
	return ""
}

function 网页加载完成() {
	gid('zfb').src = 'https://s3.bmp.ovh/imgs/2021/10/0658bfcc96fa991f.png'
	gid('wx').src = 'https://s3.bmp.ovh/imgs/2021/10/5c32b58598e9cb9a.png'
	gid('music2').innerHTML =
		'<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="420px" height="90px"src="//music.163.com/outchain/player?type=2&id=1815378685&auto=0&height=66"></iframe>'
	if (getCookie("inputname") != '') {
		gid("autoinput").checked = true;
	}
	gid("newAdd").value = getCookie("inputname");
	gid('loadingbox').remove()
}

function 改变窗口大小() {
	var devicewidth = document.documentElement.clientWidth;
	var scale = devicewidth / 1920;
	gid('gonggao').style.zoom = scale;
	gid('juankuanma').style.zoom = scale;
	gid('gengxingonggao').style.zoom = scale;
	gid('kongjian').style.zoom = scale;
	gid('shuchu').style.zoom = scale;
	gid('xianshidaima').style.zoom = scale;
	gid('WPleixing').style.zoom = scale;
	gid('fuzhi').style.zoom = scale;
	gid('ertixing').style.zoom = scale;
	gid('putmenux').style.zoom = scale;
	gid('boxxx').style.zoom = scale;
	gid('container').style.zoom = scale;
	gid('title').style.zoom = scale;
	gid('fool').style.zoom = scale;
	gid('menu').style.zoom = scale;
	gid('menu2').style.zoom = scale;
	document.getElementByTagName('iframe').style.zoom = scale;
};
// 加载公告
var boxxx = gid("boxxx");
var kg = getCookie("公告") == "" ? "block" : getCookie("公告");
boxxx.style.display = kg;
//
function 关闭公告() {
	boxxx.style.display = "none";
	gid("ann").style = "display:none;";
}

function 今日不再弹出() {
	setCookie("公告", "none", 1);
	boxxx.style.display = "none";
	gid("ann").style = "display:none;";
}

function 自动输入名字() {
	var a = gid("autoinput").checked;
	var n = gid("newAdd").value;
	if (n == "") {
		检查报错('newAdd', 1200, '请先输入名字');
		gid("autoinput").checked = false;
	} else {
		if (a) {
			检查报错('newAdd', 1200, n);
			setCookie("inputname", n, 99999);
		} else {
			setCookie("inputname", n, -1);
		}
	}
}

function 二级菜单(type) {
	if (type == '匕首') {
		var name = new Array('爪子刀', '锯齿爪刀', '蝴蝶刀', 'M9刺刀', '刺刀', '熊刀', '短剑', '骷髅匕首', '弯刀', '折叠刀', '折刀', '穿肠刀',
			'鲍伊猎刀',
			'猎杀者匕首', '暗影双匕', '海豹短刀', '流浪者匕首', '系绳匕首', '求生匕首');
		var wpname = new Array("('js507')", "('js523')", "('js515')", "('js508')", "('js500')", "('js519')",
			"('js522')", "('js525')", "('js512')", "('js505')", "('js520')", "('js506')", "('js514')",
			"('js509')", "('js516')", "('js503')", "('js521')", "('js517')", "('js518')");
	}
	if (type == '步枪') {
		var name = new Array('AK47', 'M4A1消音版', 'M4A4', 'AWP', '法玛斯', 'AUG', 'SSG 08', '加利尔 AR', 'SG 553', 'G3SG1',
			'SCAR-20');
		var wpname = new Array("('js7')", "('js60')", "('js16')", "('js9')", "('js10')", "('js8')",
			"('js40')", "('js13')", "('js39')", "('js11')", "('js38')");
	}
	if (type == '手枪') {
		var name = new Array('格洛克 18 型', 'USP 消音版', 'TEC-9', 'CZ75 自动手枪', '沙漠之鹰', '双持贝瑞塔', 'FN57', 'R8 左轮手枪',
			'P2000',
			'P250');
		var wpname = new Array("('js4')", "('js61')", "('js30')", "('js63')", "('js1')", "('js2')",
			"('js3')", "('js64')", "('js32')", "('js36')");
	}
	if (type == '冲锋枪') {
		var name = new Array('MP5-SD', 'P90', 'MP7', 'MP9', 'PP-野牛', 'UMP-45', 'MAC-10');
		var wpname = new Array("('js23')", "('js19')", "('js33')", "('js34')", "('js26')", "('js24')",
			"('js17')");
	}
	if (type == '重武器') {
		var name = new Array('截短霰弹枪', 'XM1014', '新星', 'MAG-7', 'M249', '内格夫');
		var wpname = new Array("('js29')", "('js25')", "('js35')", "('js27')", "('js14')", "('js28')");
	}
	if (type == '手套') {
		var name = new Array('血猎手套', '驾驶手套', '摩托手套', '专业手套', '运动手套', '裹手', '九头蛇手套', '狂牙手套');
		var wpname = new Array("('js5027')", "('js5031')", "('js5033')", "('js5034')", "('js5030')", "('js5032')",
			"('js5035')", "('js4725')");
	}
	if (type == '印花') {
		var name = new Array('非凡印花1', '非凡印花2', '非凡印花3', '', '奇异印花1', '奇异印花2', '奇异印花3', '', '高级印花1', '高级印花2',
			'高级印花3',
			'高级印花4', '高级印花5',
			'高级印花6', '高级印花7');
		var wpname = new Array("('js非凡')", "('js非凡2')", "('js非凡3')", '', "('js奇异')", "('js奇异2')", "('js奇异3')", '',
			"('js高级')", "('js高级2')", "('js高级3')",
			"('js高级4')", "('js高级5')", "('js高级6')", "('js高级7')");
	}
	if (type == '其他') {
		var name = new Array('布章', '探员', '箱子/礼物', '音乐盒', '胸章', '涂鸦', '标签', '工具/通行证');
		var wpname = new Array("('js布章')", "('js探员')", "('js箱子')", "('js音乐盒')", "('js胸章')", "('js涂鸦')",
			"('js标签')", "('js工具')");
	}
	if (type == '无分类') {
		var name = new Array('穿越火线', '恶搞自己', '恶搞队友', '炫彩快捷无线电', "顺口溜");
		var wpname = new Array("('js穿越火线')", "('js恶搞自己')", "('js恶搞队友')", "('js快捷无线电')", "('js顺口溜')");
	}
	if (type == '自定义无线电') {
		var name = new Array('随机颜色', '自定义颜色');
		var wpname = new Array("('随机颜色')", "('自定义颜色')");
	}
	添加侧边栏(name, wpname);
}

function 添加侧边栏(name, wpname) {
	var x = wpname.length;
	var x = x - 1;
	gid("menu2").innerHTML = "";
	var mycolor = new Array('uno', 'dos', 'tres', 'cuatro', 'cinco', 'uno', 'dos', 'tres', 'cuatro', 'cinco', 'uno',
		'dos', 'tres', 'cuatro', 'cinco');
	var myCars = new Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
		'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
	for (var i = 0; i <= x; i++) {
		var z = Math.floor(Math.random() * 15);
		var color = mycolor[z];
		var zimu = myCars[i];
		var na = name[i];
		var wp = wpname[i];
		gid('menu2').innerHTML += '<div class="menuItem ' + color + '" onclick="添加卡片' + wp + '">' + zimu +
			'<span id="spanx1' + i + '">' + na + '</span></div>';
	}
}

function 添加卡片(num) {
	if (num == '随机颜色') {
		随机颜色()
		return
	}
	if (num == '自定义颜色') {
		自定义颜色()
		return
	}
	gid('WPleixing').innerHTML = ''
	var myfun = num
	let a = eval('(' + myfun + ')').Array;
	let e = eval('(' + myfun + ')').name;
	let b = a.length;
	var c = Number(b);
	for (let z = 0; z < c; z++) {
		let f = eval('(' + myfun + ')').Array[z];
		let o = eval('(' + myfun + ')').click[z];
		if (c <= 250) {
			添加卡片命令(f, o, e)
		} else {
			setTimeout(function() {
				添加卡片命令(f, o, e);
				检查报错('', 700, '加载会卡顿:' + z + '/' + c);
			}, z * 70);
		}
	}
}

function 添加卡片命令(f, o, e) {
	gid('WPleixing').innerHTML +=
		'<div class="box"><div><svg preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><defs><linearGradient id="linear" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#f079ba"/><stop offset="100%" stop-color="#e34a82"/></linearGradient></defs><path fill="url(#linear)" fill-opacity="1" d="M0,224L60,208C120,192,240,160,360,165.3C480,171,600,213,720,197.3C840,181,960,107,1080,74.7C1200,43,1320,53,1380,58.7L1440,64L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg><div>' +
		e + '<a id="wptypea" style="float: right;">' + o + '</a></div><a class="WPname2" onclick="添加命令(\'' + e +
		'\',\'' + o +
		'\',\'' + f + '\')">' + f +
		'</a></div></div>'
}

function 添加命令(first, type, name) {
	if (type != '队友' && gid("newAdd").value == '') {
		检查报错('newAdd', 1200, '请先输入名字');
		return
	} else {
		if (type == '队友' && gid("Addfriend").value == '') {
			检查报错('Addfriend', 1200, '请先输入队友名字');
			return
		}
	}
	if (type == '违禁') {
		var color = ""
	}
	if (type == '隐秘' || type == '保密' || type == '匕首' || type == '非凡' || type == '奇异' || type == '大师' || type ==
		'奇异涂鸦') {
		var color = ""
	}
	if (type == '受限') {
		var color = ""
	}
	if (type == '军规级' || type == '卓越' || type == '音乐盒' || type == '高级涂鸦' || type == '高级') {
		var color = ""
	}
	if (type == '工业级') {
		var color = ""
	}
	if (type == '消费级') {
		var color = ""
	}
	if (type != '队友') {
		var username = gid('newAdd').value;
	} else {
		var username = gid('Addfriend').value;
		去除购买和ST()
	}
	gid('name2').innerHTML = username;
	gid('name').innerHTML = "CW.IFixBomb \"";
	gid('cmd').innerHTML = "playerchatwheel";
	随机无线电命令();
	gid('cmd3').innerHTML += " ";
	gid('cmd4').innerHTML = color + first;
	gid('cmd5').innerHTML = color + " | " + name;
	if (first == '探员') {
		gid('cmd5').innerHTML = name;
		gid('cmd4').innerHTML = color
	}
	if (first == '箱子' || first == '标签' || first == '工具' || first == '通行证') {
		gid('cmd5').innerHTML = name;
		gid('cmd4').innerHTML = ""
	}
	if (type == '非凡胸章' || type == '奇异胸章' || first == '穿越火线') {
		gid('cmd5').innerHTML = name;
		gid('cmd4').innerHTML = ""
	}
	if (first == '胸章' && type == '高级胸章') {
		gid('cmd5').innerHTML = name;
		gid('cmd4').innerHTML = ""
	}
	document.getElementsByName("ST")[0].checked = true;
	document.getElementsByName("HQ")[0].checked = true;
	武器是否有计数器('否', type);
	获取方式('交易');
	if (name == '无涂漆') {
		gid('cmd5').innerHTML = '';
		gid('cmdst').innerHTML = "（★）";
	}
	if (first == '显示' || first == '无线电') {
		去除购买和ST()
		gid('cmd3').innerHTML = '';
		gid('cmd5').innerHTML = name;
		gid('cmd4').innerHTML = ""
	}
}

function 去除购买和ST() {
	gid('STN').checked = true;
	gid('HQN').checked = true;
}

function 武器是否有计数器(value, type) {
	if (gid("cmd").innerText == '') {
		检查报错('menu', 2000, '请先选择武器');
		document.getElementsByName('st')[0].checked = true
		return
	}
	if (value == '是') {
		var newAdd = "（★ StatTrak™）";
		gid('cmdst').innerHTML = newAdd;
	}
	if (value == '纪念品') {
		var newAdd = "（纪念品）";
		gid('cmdst').innerHTML = newAdd;
	}
	if (value == '否') {
		var x = gid("cmd4").innerText;
		if (x.search('匕') != -1 || x.search('手') != -1 || x.search('刀') != -1) {
			var newAdd = "（★）";
			gid('cmdst').innerHTML = newAdd;
		} else {
			var newAdd = "";
			gid('cmdst').innerHTML = newAdd;
		}
	}
}

function 获取方式(type) {
	if (gid("cmd").innerText == '') {
		检查报错('menu', 2000, '请先选择武器');
		document.getElementsByName('HQ')[3].checked = true
		return
	}
	gid("cmd3").innerHTML = "";
	if (type == '交易') {
		gid('cmd3').innerHTML += " 通过交易获得了：";
	}
	if (type == '开箱') {
		gid('cmd3').innerHTML += " 从武器箱中获得了：";
	}
	if (type == '炼金') {
		gid('cmd3').innerHTML += " 已经履行了一个合同并收到了：";
	}
	if (type == '无') {
		gid('cmd3').innerHTML = "";
	}
}

function 检查报错(erid, time, txt) {
	gid("ertixing").innerHTML = "";
	gid('ertixing').innerHTML +=
		'<p style="font-size: 35px;text-align: center;color: white;line-height: 25px;height:100px;width:400px;">' +
		txt + '</p>';
	if (erid != '') {
		gid(erid).id = 'ERER';
	}
	gid('ertixing').id = 'ertixinger';
	setTimeout(function() {
		if (erid != '') {
			gid('ERER').id = erid;
		}
		gid('ertixinger').id = 'ertixing';
	}, time);
}

function 复制命令() {
	if (gid("cmd").innerText == '') {
		检查报错('menu', 2000, '请先选择武器');
		return
	}
	var Url2 = gid("cmd0").innerText;
	if (Url2.length < 110) {
		var oInput = document.createElement('input');
		oInput.value = Url2;
		document.body.appendChild(oInput);
		oInput.select();
		document.execCommand("Copy");
		oInput.className = 'oInput';
		oInput.style.display = 'none';
		gid("ertixing").innerHTML = "";
		gid('ertixing').innerHTML +=
			'<p style="font-size: 35px;text-align: center;color: rgba(85, 255, 0, 1);line-height: 25px;height:100px;width:400px;">复制成功！</p>';
		gid('bt').className = 'btg';
		gid('ertixing').id = 'ertixinger';
		setTimeout(function() {
			gid('bt').className = 'fuzhibt';
			gid('ertixinger').id = 'ertixing';
		}, 4000);
	} else {
		alert('复制失败，命令字数超出游戏限制，可以取消暗金武器或者改变获取方式减少字数。')
	}

}

function 清空命令() {
	gid('name2').innerHTML = "";
	gid("name").innerHTML = "";
	gid("cmd").innerHTML = "";
	gid("cmd2").innerHTML = "";
	gid("cmd3").innerHTML = "";
	gid("cmd4").innerHTML = "";
	gid("cmd5").innerHTML = "";
	gid("cmdst").innerHTML = "";
}

function 随机颜色() {
	gid("WPleixing").innerHTML = "";
	gid("WPleixing").innerHTML +=
		'<p>教程：1.输入内容并点击生成</p><p>　　　2.选择显示方式</p><p>　　　3.复制代码</p><p>　</p><p>一，输入无线电内容：</p><input type="text"class="newadd" style="width: 400px;" id="show"onfocus="Function1(this)" autocomplete="on"/><p>　</p><button type="button" onclick="随机颜色生成()"id="buttonbc1" class="buttonbc""/>生成</button><button type=" button" onclick="cleantxt1()"class="buttonbc" />删除</button><div id="drom01"><form><button type="submit" onclick="restwy()" class="buttonbc">快捷保存</button></form><div>';
	gid("WPleixing").innerHTML +=
		'<p><p id="xshearh5">二，请选择显示方式：</p><label><input type="radio" name="XS" id="XS1" onclick="无限电显示(1)" class="radio_type">换行</label><label><div id="diysjbox"><p><a id="diyuser0name">ACT丶流星雨</a>（无线电）： 需要支援。</p><p><a id="shoudiysj" style="color: red;">自定义内容</a></p><br></div></label><input type="radio" name="XS" id="XS2" onclick="无限电显示(2)" class="radio_type">直接显示<label><div id="diysjbox"><p><a id="diyuser1name">ACT丶流星雨</a>（无线电）： <a id="shoudiysj2" style="color: red;">自定义内容</a></p><br></div></label><input type="radio" name="XS" id="XS3" onclick="无限电显示(3)" class="radio_type">带名换行<label><div id="diysjbox"><p><a id="diyuser2name">ACT丶流星雨</a>（无线电）： 需要支援。</p><p><a id="diyuser3name">ACT丶流星雨</a>：<a id="shoudiysj3" style="color: red;">自定义内容</a></p>';
}

function 自定义颜色() {
	gid("WPleixing").innerHTML = "";
	gid("WPleixing").innerHTML +=
		'<p></p><a>1.添加文字：</a><input type="text" class="newadd" id="zdyshow" autocomplete="on" " /><button type="button" onclick="aa(0)"><a style="color: #d1d1d1 ;">白色</a></button><button type="button" onclick="aa(1)"><a style="color: #55aa00 ;">绿色</a></button><button type="button" onclick="aa(2)"><a style="color: #00aaff ;">淡蓝色</a></button><button type="button" onclick="aa(3)"><a style="color: #0055ff ;">蓝色</a></button><button type="button" onclick="aa(4)"><a style="color: #ff0000 ;">红色</a></button><button type="button" onclick="aa(5)"><a style="color: #ffaa00 ;">金色</a></button><button type="button" onclick="aa(6)"><a style="color: #848484 ;">灰色</a></button><button type="button" onclick="aa(7)"><a style="color: #55ff7f ;">淡绿色</a></button><button type="button" onclick="aa(8)"><a style="color: #ff5964 ;">淡红色</a></button><button type="button" onclick="aa(9)"><a style="color: #ba6aff ;">浅紫色</a></button><button type="button" onclick="清除自定义无线电内容()　　　　　　　　 "><a style="color: #000 ;">清空</a></button><input type="radio" name="XS" id="XS4" style="opacity: 0;"></p><p><input type="text" name="" id="zdyshowshow" autocomplete="on" disabled="ture" style="opacity: 0;" /><div id="colorshow"><div id="showhuanhang"><h5>一、使用教程</h5><p>1.输入自定义内容</p><p>2.选择显示方式，然后复制</p><p id="diytxterer">注意:命令字数不能超过30个字符</p><br><h5 id="xshearh5">二、选择显示方式：<h5></div><div id="showhuanhang"><label><input type="radio" name="XS" id="XS1" onclick="无限电显示(1)" class="radio_type">换行</label><p><a id="diyuser0name">ACT丶流星雨:</a>(无线电）： 需要支援。</p><span id="colorshowpro" style="height: 20px;"><span id="delc1"></span></span><br><label><input type="radio" name="XS" id="XS2" onclick="无限电显示(2)" class="radio_type">直接显示</label><p><a id="diyuser1name">ACT丶流星雨</a>（无线电）： <span id="colorshowpro" style="height: 20px;"><span id="delc2"></span></span></p><br></div><div id="showhuanhang"><label><input type="radio" name="XS" id="XS3" onclick="无限电显示(3)" class="radio_type">带名换行</label><p><a id="diyuser2name">ACT丶流星雨</a>（无线电）： 需要支援。</p><p><a id="diyuser3name">ACT丶流星雨</a>（无线电）： <span id="colorshowpro" style="height: 20px;"><span id="delc3"></span></span></p></div></div>';
}

function 随机颜色生成(wp1) {
	if (gid("newAdd").value == "") {
		检查报错('newAdd', 1200, '请先输入名字');
		return
	}
	var newAdd = gid('newAdd').value;
	for (var i = 0; i < 4; i++) {
		gid('diyuser' + i + 'name').innerText = newAdd;
	}
	去除购买和ST()
	gid('XS1').checked = true;
	if (gid("show").value == "") {
		检查报错('show', 1200, '请先输入内容');
		return
	}
	清空命令()
	gid("shoudiysj").innerHTML = "";
	gid('name').innerHTML += "1\"";
	gid('cmd').innerHTML += "playerchatwheel";
	var str = gid("show").value;
	var arr = str.split('');
	var myCars = new Array('', '', '', '', '', '', '', '', '', '');
	var mycolor = new Array('#fff', '#55aa00', '#00aaff', '#0055ff', '#ff0000', '#c28100', '#b6b6b6', '#55ff7f',
		'#ff5964', '#ba6aff');
	for (var i = 0; i < arr.length; i++) {
		var newAdd = arr[i];
		var z = Math.floor(Math.random() * 10);
		var color = myCars[z];
		var show = mycolor[z];
		gid('cmd4').innerHTML += color + newAdd;
		gid("shoudiysj").innerHTML += '<a style="color:' + show + ';">' + newAdd + '</a>';
	}
	gid("shoudiysj2").innerHTML = gid("shoudiysj").innerHTML;
	gid("shoudiysj3").innerHTML = gid("shoudiysj").innerHTML;
	无限电显示(1)
}

function 无限电显示(t) {
	if (gid("cmd").innerHTML == "") {
		检查报错('buttonbc1', 2000, '请先生成');
		return false;
	}
	if (t == 1) {
		随机无线电命令();
		gid("name2").innerHTML = "";
	}
	if (t == 2) {
		gid("name2").innerHTML = "";
		gid("cmd2").innerHTML = "";
	}
	if (t == 3) {
		gid('name2').innerHTML = gid('newAdd').value + ':';
		随机无线电命令();
	}

}

function aa(p) {
	去除购买和ST()
	if (gid("zdyshow").value == "") {
		检查报错('zdyshow', 2000, '请输入内容');
		return;
	}
	if (gid("newAdd").value == "") {
		检查报错('newAdd', 2000, '请先输入名字');
		return;
	}
	var newAdd = gid('cmd4').innerText;
	if (newAdd.length >= 30) {
		检查报错('diytxterer', 3000, '字数超出限制');
		return;
	}
	var i = Date.now();
	gid('colorshowpro').innerHTML += '<div id="delc"></div>';
	var mycolor = new Array('#fff', '#55aa00', '#00aaff', '#0055ff', '#ff0000', '#c28100', '#b6b6b6', '#55ff7f',
		'#ff5964', '#ba6aff');
	gid('delc').innerHTML += '<pre></pre>';
	var myCars = new Array('', '', '', '', '', '', '', '', '', '');
	var x = gid('zdyshow').value;
	var z = myCars[p];
	var n = x.replace(/ /g, "　");
	gid('cmd4').innerHTML += z + n;
	gid('zdyshowshow').value += z + x;
	var x = gid("delc");
	var divs = x.getElementsByTagName("pre");
	for (var i = 0; i < divs.length; i++) {
		divs[i].id = 'xx' + i;
		divs[i].style.display = 'inline';
		var z = 'xx' + i;
	}
	gid(z).style.color = mycolor[p];
	gid(z).innerHTML = gid("zdyshow").value;
	gid('delc2').innerHTML = gid('delc').innerHTML;
	gid('delc3').innerHTML = gid('delc').innerHTML;
	var newAdd = gid('newAdd').value;
	for (var i = 0; i < 4; i++) {
		gid('diyuser' + i + 'name').innerText = newAdd;
	}
	gid('name').innerHTML += "1\"";
	gid('cmd').innerHTML += "playerchatwheel";
	gid('XS1').checked = true;
	无限电显示(1)
}

function 清除自定义无线电内容() {
	gid('delc').innerHTML = ''
	gid('delc2').innerHTML = ''
	gid('delc3').innerHTML = ''
	gid('zdyshow').value = '';
	gid('cmd4').innerHTML = '';
}

function 阵营选择(t) {
	if (gid("cmd").innerText != "") {
		gid("test1").innerHTML = "";
		if (t == 'ct') {
			var newAdd = "";
		}
		if (t == 't') {
			var newAdd = "";
		}
		if (t == '智能') {
			var newAdd = "";
		}
		gid('test1').innerHTML += newAdd;
	} else {
		检查报错('menu', 2000, '请先选择武器');
		document.getElementsByName('ZY')[0].checked = true
		return
	}
}

function 搜索() {
	gid("WPleixing").innerHTML = "";
	if (gid('selectxvlaue').value == '') {
		检查报错('selectxvlaue', 2000, '请先选择武器');
		return false;
	}
	var l = gid('selectxvlaue').value;
	var myfun = new Array('js507', 'js523', 'js515', 'js508', 'js500', 'js519', 'js522', 'js525', 'js512', 'js505',
		'js520', 'js506', 'js514', 'js509', 'js516', 'js503', 'js521', 'js517', 'js518', 'js7', 'js60', 'js16',
		'js9', 'js10', 'js8', 'js40', 'js13', 'js39', 'js11', 'js38', 'js4', 'js61', 'js30', 'js63', 'js1',
		'js2',
		'js3', 'js64', 'js32', 'js36', 'js23', 'js19', 'js33', 'js34', 'js24', 'js17', 'js23', 'js19',
		'js33', 'js34', 'js26', 'js24', 'js17', 'js29', 'js25', 'js35', 'js27', 'js14', 'js28', 'js5027',
		'js5031',
		'js5033', 'js5034', 'js5030', 'js5032', 'js5035', 'js4725', 'js非凡', 'js非凡2', 'js非凡3', 'js奇异', 'js奇异2',
		'js奇异3', 'js高级', 'js高级2', 'js高级3', 'js高级4', 'js高级5', 'js高级6', 'js高级7', 'js布章', 'js探员', 'js箱子', 'js音乐盒',
		'js胸章', 'js涂鸦', 'js标签', 'js工具', 'js穿越火线', 'js恶搞自己', 'js恶搞队友', 'js快捷无线电', 'js顺口溜')

	var i = myfun.length
	for (var x = 0; x < i; x++) {
		let a = eval('(' + myfun[x] + ')').Array;
		let e = eval('(' + myfun[x] + ')').name;
		let b = a.length;
		var c = Number(b);
		for (let z = 0; z < c; z++) {
			let f = eval('(' + myfun[x] + ')').Array[z];
			let o = eval('(' + myfun[x] + ')').click[z];
			var patt = new RegExp(l, 'i');
			var result = patt.test(f);
			if (result) {
				添加卡片命令(f, o, e)
			}
		}
	}
}

function QQ联系站长() {
	window.open("http://wpa.qq.com/msgrd?v=3&uin=1340145680&site=qq&menu=yes");
	alert('如果无法拉起QQ，请手动添加好友。QQ:1340145680')
}

function 随机无线电命令() {
	var z = Math.floor(Math.random() * 11);
	var txt = new Array("跟着我。", "兄弟们待在一起。", "守住这个位置。", "发现敌人。", "需要支援。", "区域安全。", "我已经入位置。", "我需要支援。", "我们应该购买",
		"我们应该保枪", "最后的生存者")
	gid('cmd2').innerHTML = txt[z] + "　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　 ";
	gid('csgocmd').innerHTML = '依赖命令¨' + txt[z]
}
